package cn.stylefeng.guns.modular.hx.basic.mapper;

import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.modular.hx.basic.entity.HxBasicUnitCode;
import cn.stylefeng.guns.modular.hx.basic.model.params.HxBasicUnitCodeParam;
import cn.stylefeng.guns.modular.hx.basic.model.result.HxBasicUnitCodeResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 单位分组 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2024-01-10
 */
public interface HxBasicUnitCodeMapper extends BaseMapper<HxBasicUnitCode> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    List<HxBasicUnitCodeResult> customList(@Param("paramCondition") HxBasicUnitCodeParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") HxBasicUnitCodeParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    Page<HxBasicUnitCodeResult> customPageList(@Param("page") Page page, @Param("paramCondition") HxBasicUnitCodeParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") HxBasicUnitCodeParam paramCondition);

	List<HxBasicUnitCodeResult> likePids(@Param("paramCondition") Integer id);

	List<ZTreeNode> tree(@Param("paramCondition")HxBasicUnitCodeParam hxBasicUnitCodeParam);

	HxBasicUnitCodeResult findBySpec(@Param("paramCondition")HxBasicUnitCodeParam param);

	List<HxBasicUnitCodeResult> findListBySpec(@Param("paramCondition")HxBasicUnitCodeParam param);

}
